#if !defined(OUTPUT_H)
#define OUTPUT_H

#include <sys/time.h>
struct output_options { //默认取值见struct output_options output_options
    char *format; //默认DEFAULT_OUTPUT_FORMAT
    int interval;       // Seconds
    unsigned long iterations;
    
    int show_header; //默认1
    char *header;
};

// Parameter of output_thread is of type output_thread_options
void *output_thread(void *arg);
int output_offline_start(struct output_options *arg);
int output_offline_update(struct timeval tv);

int check_format(char format[]);

#endif